/*
 * @Author: fei-plus-max-debugger
 * @Date: 2023-12-13 11:46:20
 * @LastEditTime: 2023-12-13 14:33:07
 * @email: https://www.baidu.com/
 */
import { baseAddress } from '@/api/url'
import Mock from 'mockjs'
import { baseData } from '../base.ts'
export const adminRoutes = [
	{
		menuUrl: '/system',
		menuName: '系统管理',
		icon: 'SettingIcon',
		tip: 'new',
		parentPath: '',
		children: [
			{
				parentPath: '/system',
				menuUrl: '/system/department',
				menuName: '部门管理'
			},
			{
				parentPath: '/system',
				menuUrl: '/system/user',
				menuName: '用户管理'
			},
			{
				parentPath: '/system',
				menuUrl: '/system/role',
				menuName: '角色管理'
			},
			{
				parentPath: '/system',
				menuUrl: '/system/menu',
				menuName: '菜单管理',
				cacheable: true
			}
		]
	},
	{
		menuUrl: '/list',
		menuName: '列表页面',
		icon: 'OperationIcon',
		parentPath: '',
		children: [
			{
				parentPath: '/list',
				menuUrl: '/list/table-with-search',
				menuName: '表格搜索'
			},
			{
				parentPath: '/list',
				menuUrl: '/list/table-custom',
				menuName: '自定义表格'
			},
			{
				parentPath: '/list',
				menuUrl: '/list/list',
				menuName: '普通列表'
			},
			{
				parentPath: '/list',
				menuUrl: '/list/card-list',
				menuName: '卡片列表'
			}
		]
	},
	{
		menuUrl: '/exception',
		menuName: '异常页面',
		icon: 'WarningIcon',
		parentPath: '',
		children: [
			{
				parentPath: '/exception',
				menuUrl: '/exception/404',
				menuName: '404页面'
			},
			{
				parentPath: '/exception',
				menuUrl: '/exception/403',
				menuName: '403页面'
			},
			{
				parentPath: '/exception',
				menuUrl: '/exception/500',
				menuName: '500页面'
			}
		]
	},
]

Mock.mock(baseAddress + '/getMenuList', function () {
	baseData.data = adminRoutes
	return Mock.mock(baseData)
})
